package cn.vcjf.weapp.api.active.entity;

import cn.vcjf.weapp.common.TableAlias;
import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;

/**
 * <p>
 * 套餐明细
 * </p>
 *
 * @author zhengzihang
 * @since 2018-09-28
 */
@TableName("vc_goods_setmeal_detail")
@TableAlias("gsd")
public class GoodsSetmealDetail extends PageModel<GoodsSetmealDetail> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 套餐Id
	 */
	private Integer setmealId;

	/**
	 * 商品ID
	 */
	private Integer goodsId;

	/**
	 * 商品数量
	 */
	private Integer goodsNum;
/*****************************************************/
	/**
	 * 商品名称
	 */
	@TableField(exist = false)
	private String goodsName;
	/**
	 * 商品原价格
	 */
	@TableField(exist = false)
	private BigDecimal goodsPrice;



	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public BigDecimal getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(BigDecimal goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getSetmealId() {
		return setmealId;
	}

	public void setSetmealId(Integer setmealId) {
		this.setmealId = setmealId;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	@Override
	public void preInsert() {
		super.preInsert();
	}

	@Override
	public void preUpdate() {
		super.preInsert();
	}

	@Override
	public String toString() {
		return "GoodsSetmealDetail{" +
				"id=" + id +
				", setmealId=" + setmealId +
				", goodsId=" + goodsId +
				", goodsNum=" + goodsNum +
				", createUser=" + createUser +
				", createTime=" + createTime +
				", updateUser=" + updateUser +
				", updateTime=" + updateTime +
				", deleteFlag=" + deleteFlag +
				", sysUserId=" + sysUserId +
				"}";
	}
}
